Skip to content

Conversation

@achingbrain
Copy link
Member

@achingbrain achingbrain commented Sep 23, 2025

merge-options is used to perform deep merges of option objects.

Instead each component should receive an options object and validate it/populate default values - this way components only know about their own options and not the options of other components.

Fixes #3273

BREAKING CHANGE: merge-options has been removed from @libp2p/utils

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

`merge-options` is used to perform deep merges of option objects.

Instead each component should receive an options object and validate
it/populate default values - this way components only know about
their own options and not the options of other components.

BREAKING CHANGE: merge-options has been removed from `@libp2p/utils`
@achingbrain achingbrain requested a review from a team as a code owner September 23, 2025 06:05
@achingbrain achingbrain merged commit dc01b32 into main Sep 23, 2025
48 of 64 checks passed
@achingbrain achingbrain deleted the fix/remove-merge-options branch September 23, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@libp2p/utils/merge-options is blowing the stack in a wasm environment

2 participants